x86: rdtsc emulation (PV and HVM) must be monotonically increasing
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 2 Sep 2009 10:39:02 +0000 (11:39 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 2 Sep 2009 10:39:02 +0000 (11:39 +0100)
commitb2af4890749e010602f1cbe3caabcfaa980cd4a8
treea7e66d767727f2e39be45131396f11e15d8030a5
parent0bdd52018f654680965dbe4689328cb227e86bf4
x86: rdtsc emulation (PV and HVM) must be monotonically increasing

The Intel SDM (section 18.10) clearly states that rdtsc
returns a "monotonically increasing unique value".
Current emulation code for rdtsc (both PV and HVM) returns
only a monotonically-non-decreasing (non-unique) value,
so ensure stale value is always incremented.

Signed-off-by: Dan Magenheimer <dan.magenheimer@oracle.com>
xen/arch/x86/hvm/vpt.c
xen/arch/x86/time.c